<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="fm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- 引入JQuery -->
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/jquery-easyui-1.5.2/jquery.min.js"></script>
<!-- 引入EasyUI -->
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
<!-- 引入EasyUI的中文国际化js，让EasyUI支持中文 -->
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js"></script>
<!-- 引入EasyUI的样式文件-->
<link rel="stylesheet" href="${pageContext.request.contextPath}/statics/jquery-easyui-1.5.2/themes/default/easyui.css" type="text/css"/>
<!-- 引入EasyUI的图标样式文件-->
<link rel="stylesheet" href="${pageContext.request.contextPath}/statics/jquery-easyui-1.5.2/themes/icon.css" type="text/css"/>
<title>车型信息修改页面</title>
</head>
<body>

	<fm:form action="" method="post" menctype="multipart/form-data" modelAttribute="car"  >
		<div>
                    <label for="type">汽车型号：</label>
                    <fm:input class="easyui-textbox" path="type" id="type" value="${carbyid.type }"/>
                    <fm:errors path="type" ></fm:errors>
					<!-- 放置提示信息 -->
					<font color="red"></font>
                </div>
                <div>
                    <label for="brand">品牌：</label>
                    <fm:input class="easyui-textbox" path="brand" id="brand" value="${carbyid.brand }"/>
                    <fm:errors path="brand" ></fm:errors>
					<font color="red"></font>
                </div>
                <div>
                    <label for="engine">发动机：</label>
                    <fm:input class="easyui-textbox" path="engine" id="engine" value="${carbyid.engine }" />
                    <fm:errors path="engine" ></fm:errors>
					<font color="red"></font>
                </div>
                <div>
                    <label for="inprice">进价：</label>
                    <fm:input class="easyui-textbox" path="inprice" id="inprice" value="${carbyid.inprice }" />
                    <fm:errors path="inprice" ></fm:errors>
					<font color="red"></font>
                </div>
                <div>
                    <label for="outprice">售价：</label>
                    <fm:input class="easyui-textbox" path="outprice" id="outprice" value="${carbyid.outprice }" />
                    <fm:errors path="outprice" ></fm:errors>
					<font color="red"></font>
                </div>
                <div>
                    <label for="color">颜色：</label>
                    <fm:input class="easyui-textbox" path="color" id="color" value="${carbyid.color }" />
                    <fm:errors path="color" ></fm:errors>
					<font color="red"></font>
                </div>
                <div>
                    <label for="minnum">最小库存：</label>
                    <fm:input class="easyui-textbox" path="minnum" id="minnum" value="${carbyid.minnum }" />
                    <fm:errors path="minnum" ></fm:errors>
					<font color="red"></font>
                </div>
                <div>
                    <label for="nownum">当前库存：</label>
                    <fm:input class="easyui-textbox" path="nownum" id="nownum" value="${carbyid.nownum }" />
                    <fm:errors path="nownum" ></fm:errors>
					<font color="red"></font>最小库存
                </div>
                <div>
                    <label >驱动方式：</label>
                    <fm:select path="energy" id="energy">
                    	<fm:option value="font">前轮驱动</fm:option>
	    				<fm:option value="behand">后轮驱动</fm:option>
	    				<fm:option value="all">四轮驱动</fm:option>
                    </fm:select>
                </div>
               <%--  <div>
                    <label for="birthday">出生日期：</label>
                    <fm:input path="birthday" Class="Wdate" id="birthday" readonly="readonly" onclick="WdatePicker();" />
                    <fm:errors path="birthday" ></fm:errors>
					<font color="red"></font>
                </div> --%>
                <div>
                    <label for="supportId" >供货商：</label>
                    <!-- 列出所有的供货商 -->
                    <fm:select path="supportId" id="supportId">
                    	<fm:option value="0" >--请选择--</fm:option>
                    	<c:forEach items="${supportList}" var="support">
                    		<fm:option value="${support.id}" >${support.name}</fm:option>
						</c:forEach>
                    </fm:select>
                </div>
                <div>
                	<input type="hidden" id="errorinfo" value="${uploadFileError}"/>
                    <label for="a_idPicPath">证件照：</label>
                   	<input type="file" name="attachs" id="a_idPicPath"/>
                    <font color="red"></font>
                </div>
               <%-- <div>
                	<input type="hidden" id="errorinfo_wp" value="${uploadWpError}"/>
                    <label for="a_workPicPath">工作证照片：</label>
                   	<input type="file" name="attachs" id="a_workPicPath"/>
                    <font color="red"></font>
                </div> --%>
                <div class="providerAddBtn">
                    <input type="button" name="add" id="add" value="保存" >
					<input type="button" id="back" name="back" value="返回" >
                </div>
	</fm:form>

</body>
</html>